package org.tinygroup.earthworm;

public class LocalContext extends WormBaseContext {
	private boolean end;
	LocalContext localParent;

	LocalContext(String _traceId, String _rpcId) {
		super(_traceId, _rpcId);
	}

	LocalContext(String _traceId, String _rpcId, String _localId) {
		super(_traceId, _rpcId);
		this.localId = _localId;
	}

	public boolean isEnd() {
		return end;
	}

	public void setEnd(boolean end) {
		this.end = end;
	}

	public LocalContext getLocalParent() {
		return localParent;
	}

	public String toString() {
		return super.toString() + KV_ITEM_SPLITER + "end" + KV_SPLITER + end;
	}

}
